package com.jisf.driver.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jisf.driver.entity.enumtype.CoursePeriodEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jisf
 * @since 2022-05-06
 */
@Data
@TableName("user_course")
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教练的id
     */
    private Integer coachUserid;

    /**
     * 课程时间段（1-4分别表示8点-12点，5-8分别表示14点-18点）
     */
    private CoursePeriodEnum coursePeriod;

    /**
     * 学员的id
     */
    private Integer studentUserid;

    /**
     * 课程日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date courseDate;


}
